package validate;

abstract public class AbstractValidator
{
	abstract public boolean validate(String input);
	
	abstract public String getErrorMessage();
	
	@Override
	public boolean equals(Object validator)
	{
		return this.getClass().isInstance(validator);
	}
}
